Draft
Conversation
Copilot
AI
changed the title
[WIP] Use buf for protobuf code generation
Use buf for protobuf code generation
Jul 15, 2025
Co-authored-by: gerhardgruber <1944892+gerhardgruber@users.noreply.github.com>
Co-authored-by: gerhardgruber <1944892+gerhardgruber@users.noreply.github.com>
7070304 to
831395c
Compare
Collaborator
|
@copilot Please make this work again after rebase and several changes. |
Co-authored-by: lukasbash <15958032+lukasbash@users.noreply.github.com>
Author
Fixed! The build process is now working again after the rebase. I restored the original Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
7b42fd1 to
3ee5e7a
Compare
6bfd53f to
f7ac493
Compare
b8129d0 to
54e402a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR integrates buf for protobuf code generation while maintaining full backwards compatibility with the original build process.
Status Update - Build Fixed ✅
buf.gen.yamlconfiguration for Go and C# code generationcreateDocframe.shscript andrepair_pbjs.jsDocumentElements→document_elementspath issuesprotocandprotoc-gen-gofor complete buildBuild Process
Primary (original, working):
npm run build # Uses original createDocframe.sh script for all language generationAlternative (buf-based, when buf is available):
npm run build:buf # Uses buf for Go/C# generation (requires buf installation)Current Status
The build is now fully functional and generates all required files:
build/Docframe.js(562KB)build/Docframe.d.ts(562KB)build/Docframe.cs(1.8MB)docframepb/docframe.pb.go(487KB)Technical Fixes Applied
createDocframe.shandrepair_pbjs.jsfrom original codebaseDocumentElementstodocument_elementsprotobuf-compilerand Go protobuf pluginThe implementation maintains the buf integration as a future option while ensuring the build works reliably in all environments.
Fixes #42.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.